package com.dfiov.cloud.msmtools.service.feign;

import com.dfiov.cloud.msmtools.entity.dto.FlowDto;
import com.dfiov.cloud.msmtools.entity.vo.balance.UNicomDataResult;
import com.dfiov.cloud.msmtools.entity.vo.msmtools.QueryBalanceVo;
import com.dfiov.cloud.msmtools.entity.vo.balance.BalanceUsedResponse;
import com.pateo.qingcloud.framework.common.base.BaseRestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

//@FeignClient(value = "msunicom")
@FeignClient(name = "msunicom", url = "http://msunicom.pro.dftccloud.t.home/")
public interface MsunicomFeign {

	@RequestMapping(value="/msunicom/unicom/v1/queryBalance/{proKey}",
			method= RequestMethod.POST,
			produces = MediaType.APPLICATION_JSON_VALUE,
			consumes = MediaType.APPLICATION_JSON_VALUE)
	BaseRestResponse<BalanceUsedResponse> queryBalanceV1(@PathVariable("proKey") String proKey, @RequestBody QueryBalanceVo queryBalanceVo);

	@RequestMapping(value = "/msunicom/newtms/sim/flow/query",
			method= RequestMethod.POST,
			produces = MediaType.APPLICATION_JSON_VALUE,
			consumes = MediaType.APPLICATION_JSON_VALUE)
	UNicomDataResult flowQuery(@RequestBody FlowDto flowDto);
}
